﻿namespace Sandy
{
    public class KeyRange
    {
        public KeyRange(string startKey = "", string endKey = "", int count = 100)
        {
            StartKey = startKey;
            EndKey = endKey;
            Count = count;
        }

        internal Apache.Cassandra.KeyRange ToCassandraRange()
        {
            return new Apache.Cassandra.KeyRange
                       {
                           Count = Count,
                           End_key = EndKey,
                           Start_key = StartKey
                       };
        }

        public string StartKey { get; private set; }
        public string EndKey { get; private set; }
        public int Count { get; private set; }
    }
}